import {request} from "umi";
import {PREFIX} from "@/consts";

export const createGeomFromGeoJson = async (geojson: string) => {
  return request(`${PREFIX}/geoms`,{
    method: "POST",
    data: {geom: geojson}
  })
};
